#include <stdio.h>
#include <string.h>

int myatoi(char *str)
{
    int str_index = 0;
    while (str[str_index] != '\0')
    {
        str_index++;
    }

    str_index -= 1;
    int ret = 0;
    int bit = 1;
    while (str_index >= 0)
    {
        int value = str[str_index] - '0';
        ret += (value * bit);
        bit *= 10;
        str_index--;
    }
    return ret;
}

void variables()
{
    // 1.变量
    int a = 100;
    // 2.一级指针
    char str[] = "welcome to beijing";
    char *str1 = str;

    // 3.二级指针
    char *arr3[100] = {"welcome", "to", "beijing"};
    char **arr4 = arr3;

    // 4.一维数组
    int arr10[] = {111, 222, 333, 444, 555};

    // 5.二维数组
    int arr6[][3] = {111, 222, 333, 444, 555};

    // 6.数组指针
    char *arr7[] = {"welocome", "to", "beijing"};

    // 7.指针数组
    int aa = 100;
    int bb = 200;
    int cc = 300;
    int dd = 400;
    int *arr8[] = {&aa, &bb, &cc, &dd};
}

void myBubbling(int *a, int len)
{
    for (int i = 0; i < len - 1; i++)
    {
        for (int j = 0; j < len - 1 - i; j++)
        {
            if (a[j] > a[j + 1])
            {
                a[j] = a[j] ^ a[j + 1];
                a[j + 1] = a[j] ^ a[j + 1];
                a[j] = a[j] ^ a[j + 1];
            }
        }
    }
}

int main(int argc, char const *argv[])
{
    // int nums[10];
    // for (int i = 0; i < 10; i++)
    // {
    //     int input;
    //     scanf("%d", &input);
    //     nums[i] = input;
    // }
    // myBubbling(nums, sizeof(nums) / sizeof(int));

    // int a = 1;
    // int b = 0;
    // int c = 0;
    // int d = (++a) * (c = 1);
    // printf("%d",d);

    char str1[100];
    char str2[100];
    scanf("%s%s", str1, str2);
}